Providing function() from Application to Library